package com.ruoyi.mstore.controller;

import com.ruoyi.mstore.domain.OrderServiceItem;
import com.ruoyi.mstore.service.OrderServiceItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/orderServiceItem")
public class OrderServiceItemController {

    @Autowired
    private OrderServiceItemService orderServiceItemService;

    @RequestMapping("/getByOrderServiceItem")
    public List<OrderServiceItem> getByOrderServiceItem(OrderServiceItem orderServiceItem) {
        return orderServiceItemService.getByOrderServiceItem(orderServiceItem);
    }

}
